package com.ryenlii.datatrans.mapper.tdengine;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ryenlii.datatrans.entity.Student;
import org.apache.ibatis.annotations.Param;

/**
 * @author zhengwen
 */
@DS("tdengine-service")
public interface StudentMapper extends BaseMapper<Student> {

    /**
     * 插入
     *
     * @param record
     * @return
     */
    int insertStudent(Student record);

    /**
     * 列表
     *
     * @param page
     * @param customQueryParams
     * @return
     */
    IPage<Student> selectStudentPage(Page page, @Param("student") Student customQueryParams);
}
